{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<input type="hidden" id="app_id" value="{$app_id}"/>
<input type="hidden" id="live_in" value="{$video.live_in}"/>
<div id="id_video_container" style="width:100%;height:1px;"></div>
<if condition="$video['live_in'] eq 1">
    <input type="hidden" id="video_type" value="{$video.video_type}"/>
    <input type="hidden" id="live_url" value="{$video.play_hls}"/>
    <input type="hidden" id="live_url2" value="{$video.play_flv}"/>
    <load href='__TMPL__Common/js/live_connect.js' />
    <input type="hidden" id="channel_id" value="{$video.channelid}"/>
<else />
    <input type="hidden" id="video_url" name="video_url" value="{$video_url}"/>
    <script src="//qzonestyle.gtimg.cn/open/qcloud/video/h5/h5connect.js" charset="utf-8"></script>
</if>



<script type="text/javascript">
    var live_in = $("#live_in").val();
    if(live_in==1){
        var video_type = $("#video_type").val();
        if(video_type==1){
            var live_url = $("#live_url").val();
            var live_url2 = $("#live_url2").val();
            var option = {
                "live_url" : live_url,
                "live_url2" : live_url2,
                "width" : 1024,
                "height" : 768
            };
            new qcVideo.Player("id_video_container", option);
        }else{
            var channel_id = $("#channel_id").val();
            var app_id = $("#app_id").val();
            var option ={"channel_id":""+channel_id,"app_id":""+app_id,"width":"1024","height":"768"};
            if(channel_id!=''){
                new qcVideo.Player(
                        /*代码中的id_video_container将会作为播放器放置的容器使用,可自行替换*/
                        "id_video_container",
                        option
                );
            }
        }
    }else{
        var app_id = $("#app_id").val();
        var video_url = $("#video_url").val();
        var player = new qcVideo.Player("id_video_container", {
            "file_id": video_url,
            "app_id": app_id,
            "width":1024,
            "height":768
        });
    }

</script>